#!/usr/bin/env php
<?php

require_once 'vendor/autoload.php';
/******************************************************
*for some reason need to include here these two files *
******************************************************/
require_once 'core/Dotenv/Dotenv.php';

/**
 * sent second @param, file name if load file other then .env
 */
$dotenv = new Dotenv(getcwd());
$dotenv->load();
/***********************************************************/

require_once 'core/helpers.php';

require 'core/Commands/CreateControllerCommand.php';
require 'core/Commands/CreateModelCommand.php';
require 'core/Commands/MakeAuth.php';
require 'core/Commands/MigrationCommand.php';

use Symfony\Component\Console\Application;
use Core\Commands\CreateControllerCommand;
use Core\Commands\CreateModelCommand;
use Core\Commands\MakeAuth;
use Core\Commands\MigrationCommand;


$application = new Application('Welcome to Kframe Console Developed By Kashif Sohail', '1.0.0');
$application->add(new CreateControllerCommand());
$application->add(new CreateModelCommand());
$application->add(new MakeAuth());
$application->add(new MigrationCommand());

$application->run();
